import 'package:get/get.dart';
import 'package:flutter/material.dart';
import '../controller/sites.dart';
import 'liveListController.dart';
class mainPageController extends GetxController
with GetSingleTickerProviderStateMixin {
  late TabController tabController;
  mainPageController() {
    tabController =
        TabController(length: Sites.supportSites.length, vsync: this);
  }
  @override
  void onInit() {
      for (var site in Sites.supportSites) {
        Get.put(liveListController(site), tag: site.id);
    }

    super.onInit();
  }

}